Since widget allocations are now relative to the parent's origin, we
need to pass the window allocation here.
else if (priv->widget)
{
rect_window = gtk_widget_get_window (priv->widget);
- gtk_widget_get_allocation (priv->widget, &rect);
+ gtk_widget_get_window_allocation (priv->widget, &rect);
text_direction = gtk_widget_get_direction (priv->widget);
}
else if (!priv->position_func)
GtkWidget *parent;
GtkAllocation alloc;
- g_assert (gtk_widget_get_has_window (widget));
-
/* Don't consider the parent == widget case here. */
parent = _gtk_widget_get_parent (widget);
while (parent && !_gtk_widget_get_has_window (parent))